<?php

require_once('includes/AdminController.php');

$acb = new AdminController();

//Quick fix: loads the image template if user is not authenticated
if (!$acb->isAuthenticated() ||
        !$acb->auth->getUser()->isEditor())
{
    $acb->display('index.tpl');
    return;
}

$acb->displayPage();

?>